package cn.ehanghai.htz.mapper;

import cn.ehanghai.htz.domain.Position;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.common.BaseMapper;

/**
 * @Author: xumf
 * @Date: 2019/7/5 13:22
 */
@Mapper
@Component
public interface PositionMapper extends BaseMapper<Position> {

    // 更新 value
    @Update("UPDATE position SET lat=#{lat},lon=#{lon},rate_of_turn=#{rateOfTurn},speed_over_ground=#{speedOverGround}," +
            "course_over_ground=#{courseOverGround},update_date=#{updateDate} WHERE id=#{id}")
    int updateValue(Position model);

}
